#include<stdio.h>
struct Student
{
    int id;
    int age;
    char *name;
    char *gender;
    char *address;
};//自定义结构体类型

void studifo(struct Student *p)
{
    printf("id:%d\n",p->id);
    printf("age:%d\n",p->age);
    printf("name:%s\n",p->name);
    printf("gender:%s\n",p->gender);
    printf("adress:%s\n",p->address);
}

int main()
{
    struct Student stu1,stu2;
    //自定义的结构体变量
    struct Student *ptr=&stu1;
    stu1.id=100;              
    stu1.age=10;               
    stu1.name="tom";             
    stu1.gender="男";             
    stu1.address="软件园";     
    //访问变量
    studifo(ptr);
    return 0;
}